package cn.saddyfire.pattern.prototype.demo;

/**
 * @author Dee
 * @date 2024/1/23
 * <p>Description:
 */
public class Test {
    public static void main(String[] args) throws CloneNotSupportedException {
        Realizetype realizetype = new Realizetype();
        Realizetype clone = realizetype.clone();
        System.out.println("原型对象和克隆出来的是否是同一个对象? " + (clone == realizetype));
    }
}
